package com.lagou.client;

import java.util.Scanner;

/**
 * 客户端的扫描器，实现扫描器工具类的封装
 */

public class ClientScanner {
    private static Scanner sc = new Scanner(System.in);

    /**
     * 自定义成员方法实现扫描器的获取
     * @return
     */
    public static Scanner getScanner(){
        return sc;
    }

    /**
     * 扫描器关闭
     */
    public static void closeScanner(){
        sc.close();
    }
}
